package com.zhentao.model.common.admin.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * 
 * @TableName admin_menu
 */
@TableName(value ="admin_menu")
@Data
public class AdminMenu implements Serializable {
    /**
     * 菜单主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 菜单名称
     */
    @TableField(value = "menu_name")
    private String menuName;

    /**
     * 父节点
     */
    @TableField(value = "parent_id")
    private Integer parentId;

    /**
     * 路由路径
     */
    @TableField(value = "path")
    private String path;

    /**
     * 子菜单
     */
    @TableField(exist = false)
    private List<AdminMenu> menus;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}